//---------------------------------------------------------------------------

#ifndef TestH
#define TestH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Menus.hpp>
#include <Dialogs.hpp>
#include <ExtDlgs.hpp>
#include <CheckLst.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include <iostream>
#include <sstream>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TMainMenu *MainMenu;
        TMenuItem *Otworz1;
        TMenuItem *WczytajPytania1;
        TMenuItem *Zamknij1;
        TMenuItem *Pomoc1;
        TOpenDialog *OpenDialog;
        TOpenPictureDialog *OpenPictureDialog;
        TLabel *Label1;
        TImage *Image;
        TButton *ButtonStart;
        TButton *ButtonZatwierdz;
        TMemo *MemoPyt;
        TCheckListBox *CheckListBox;
        TMemo *MemoPom;
        TLabel *LabelScor;
        TButton *ButtonBack;
        TButton *Button2;
        void __fastcall WczytajPytania1Click(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall ButtonStartClick(TObject *Sender);
        void __fastcall ButtonZatwierdzClick(TObject *Sender);
        void __fastcall ButtonBackClick(TObject *Sender);
        void __fastcall Button2Click(TObject *Sender);
        void __fastcall Zamknij1Click(TObject *Sender);
        void __fastcall Pomoc1Click(TObject *Sender);
private:	// User declarations
 int sterowaniepytaniem;
 int ilepytan;
 int ileodpowiedzi;
 int dobrychOdpowiedzi;
 String *pytania;
 String *odpPoprawne;
 String *imagelink;
 String **odpowiedzi;
 String *odpUser;
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
         void wczytajPlikDoTablic();
         void przydzielPamiec();
         void wypiszpytanie(int nrPytania);
         void sprawdzPoprawnoscOdpowiedzi();
         String ocena();
         };
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
